from django.shortcuts import render
from django.http import JsonResponse
from django.http import HttpRequest
from Utils.CommonUtils import selectDisk


def test(req: HttpRequest):
    return render(req, "index.html")


def disk(req: HttpRequest):
    disk_list = selectDisk()
    print(disk_list)
    return JsonResponse(disk_list, safe=False)
